for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
document.addEventListener( 'DOMContentLoaded', function() {
// set text direction class
var widgets = document.querySelectorAll( '.glsr-widget, .glsr-shortcode' );
for( var i = 0; i < widgets.length; i++ ) {
var direction = window.getComputedStyle( widgets[i], null ).getPropertyValue( 'direction' );
widgets[i].classList.add( 'glsr-' + direction );
}
new GLSR.Forms();
GLSR
/** global: GLSR */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
new GLSR.Pagination();
new GLSR.Excerpts();
});
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.